import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: () => import('../pages/home/index.vue')
    },
		{
			path: '/search',
			component: () => import('../pages/search/')
    },
    {
      name: 'playlist',
      path: '/playlist/:pid',
      component: () => import('../pages/music/playlist')
    },
    {
      name: 'player',
      path: '/player/:id',
      component: () => import('../pages/music/player')
    }
  ]
})
